home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
1_0-2
/
EARTHPLO
/
EP_EWIND.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-12-25
|
1KB
|
62 lines
#include "ep.const.h"
#include "ep.extern.h"
long oldBackground = whiteColor;
long oldFore = blackColor;
eUpdate (Resized) /************************************************************/
Boolean Resized;
{
Rect tr;
if (Resized) {
ClipRect(&eWindow->portRect);
EraseRect(&eWindow->portRect);
}
DrawPicture(ebmPict,&eWindow->portRect);
myDrawGrowIcon();
}
eClose() /************************************************************/
{
SkelWhoa ();
}
eClobber() /************************************************************/
{
GrafPtr thePort;
GetPort (&thePort); /* grafport of window to dispose*/
DisposeWindow ((WindowPtr) thePort);
}
eActivate() /************************************************************/
{
}
eMouse() /************************************************************/
{
}
eKey() /************************************************************/
{
}
myDrawGrowIcon()
{
Rect tr;
tr.bottom = eWindow->portRect.bottom - 2;
tr.right = eWindow->portRect.right - 2;
tr.top = eWindow->portRect.bottom - 11;
tr.left = eWindow->portRect.right - 11;
BackColor(oldBackground);
ForeColor(oldFore);
FrameRect(&tr);
OffsetRect(&tr,-3,-3);
InsetRect (&tr, 1, 1);
EraseRect(&tr);
FrameRect(&tr);
}